package main

import (
	"git.oschina.net/goweb/router"
	"net/http"
)

func main() {

	http.Handle("/css/", http.FileServer(http.Dir("template/static")))
	http.Handle("/js/", http.FileServer(http.Dir("template/static")))

	http.HandleFunc("/login", router.LoginHandler)
	http.HandleFunc("/ajax", router.AjaxHandler)
	http.HandleFunc("/index", router.IndexHandler)
	http.HandleFunc("/", router.NotFoundHandler)
	http.ListenAndServe(":8888", nil)
}
